package io.sunny.platform.ai.deepseek.sql.config;

import org.springframework.ai.chat.client.ChatClient;
import org.springframework.ai.chat.model.ChatModel;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author SUNNY
 * @Date 2025/11/6 17:32
 * @PackageName: io.sunny.platform.ai.deepseek.sql.config
 * @Description: TODO
 * @Version 1.0
 */
@Configuration
public class ChatClientConfig {

    @Bean
    public ChatClient chatClient(ChatModel chatModel) {
        return ChatClient.builder(chatModel).build();
    }
}
